package com.bawei.module_mine.model.api

import com.bawei.lib_net.entity.ResponseEntity
import com.bawei.module_mine.model.entity.UserEntity
import retrofit2.http.Field
import retrofit2.http.FormUrlEncoded
import retrofit2.http.POST

interface LoginApi {

    @FormUrlEncoded
    @POST("/user/login")
    suspend fun login(@Field("password")password:String, @Field("username")username:String):ResponseEntity<UserEntity>

    @FormUrlEncoded
    @POST("/user/register")
    suspend fun register(@Field("password")password:String, @Field("username")username:String):ResponseEntity<UserEntity>
    
    /**
     * 一键登录接口有问题版
     */
//    @FormUrlEncoded
//    @POST("/user/quick-login")
//    suspend fun quickLogin(@Field("phoneNumber") phoneNumber: String): ResponseEntity<UserEntity>

}